#!/bin/bash

set -e
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
export readonly ARCH=${1:-amd64}
export readonly NAME=${2:-minio-operator}
export readonly VERSION=${3:-$(basename "$PWD")}

# init
./init.sh $ARCH $NAME $VERSION

sealos build --platform=linux/${ARCH} -t labring/${NAME}:${VERSION} -f Kubefile .

